package com.kukudb.captcharepeater.serveice.interFaceTemp;

import com.kukudb.captcharepeater.pojo.ToEmail;
import com.kukudb.captcharepeater.pojo.Users;
import jakarta.mail.MessagingException;

public interface EmailServericeInterface {
    /**
     * 发送普通邮件
     *
     * @param toEmail
     * @return
     */
    boolean commonEmail(ToEmail toEmail);


    /***
     * HTML邮件发送
     * @param toEmail
     */
    boolean htmlEmail(ToEmail toEmail) throws MessagingException;

    void sendPhoneEmailForAdmin(String email, String phone);

    void sendCodeForAdmin(Users user);
}
